package com.yfdice.android.bam;

public final class DeviceItem{
	public static final int	FilterType_None	= 0;
	public static final int	FilterType_Once = 1;
	public static final int	FilterType_Always = 2;
	
    public static final int STATE_DISCONNECTED = 0;   // now device is disconnected
    public static final int STATE_CONNECTING = 1;  // now initiating an outgoing connection
    public static final int STATE_CONNECTED = 2;  // now connected to a remote device

	public String strMAC;
	public String strName;  
	public String strUserName; // 用户命名
	public int nFilter; 
	public int nRSSI;
	public int nBattery;
	public int nState;
	public boolean reset;

	public DeviceItem()
	{
		nFilter = FilterType_None; // 0 不过滤，1 过滤一次 2 暂停
		nState = STATE_DISCONNECTED;
		nRSSI = 0;
		nBattery = 0;
		reset = false;
	}
	
	public DeviceItem(DeviceItem item)
	{
		strMAC = item.strMAC;
		strName = item.strName;
		strUserName = item.strUserName;
		nFilter = FilterType_None; // 0 不过滤，1 过滤一次 2 暂停
		nState = STATE_DISCONNECTED;
		nRSSI = 0;
		nBattery = 0;
		reset = false;
	}
};
